package com.xbx.oss.controller;

import com.xbx.commonutils.R;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/eduservice/user")
@CrossOrigin //解决跨域问题
public class testController {
    @PostMapping("login")
    public R login(){
        return R.ok().data("token","admin");
    }
}
